const Router = require('koa-router');

const { search, hotSearch, suggestSearch } = require('./search');
const { song, song_url } = require('./song');
const { top, topCategory } = require('./top');
const { lyric } = require('./lyric');
const { getcookie, setcookie } = require('./cookie');
const { playlist_Info , playlist,playlist_Category } = require('./playlist'); /* playlist_tagCategory, playlist_Tag, */

// 新建 咪咕 路由
const wyy = new Router();

// add get method

wyy.get('/search', search);
wyy.get('/hotSearch', hotSearch);
wyy.get('/suggestSearch', suggestSearch);
wyy.get('/song', song);
wyy.get('/song/url', song_url);

wyy.get('/lyric', lyric);

wyy.get('/top', top);
wyy.get('/topCategory', topCategory);

wyy.get('/getcookie', getcookie);

// wyy.get('/singer/info', singer_Info);
// wyy.get('/singer/songList', singer_songList);

// wyy.get('/playlist/tagCategory', playlist_tagCategory);
// wyy.get('/playlist/tag', playlist_Tag);
wyy.get('/playlist/info', playlist_Info);
wyy.get('/playlist',playlist);
wyy.get('/playlist/category',playlist_Category)

// // add post method
wyy.post('/setcookie', setcookie);

module.exports = wyy;